package com.hwl.demo5.service.impl;

import com.hwl.demo1.service.Operation;

/**
 * 对数运算类 求以numA为低的numB的对数
 *
 * @author sentry
 * @since 2023-03-18
 */
public class Log extends Operation {

    @Override
    public double getResult(double numberA, double numberB) {
        return Math.log(numberB) / Math.log(numberA);
    }
}
